package org.zb.shiro.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.zb.shiro.dao.PermissionMapper;
import org.zb.shiro.model.Permission;

@Service
public class PersmissionService {
	
	@Autowired
	private PermissionMapper permissionMapper;

	public List<Permission> findByRoleIds(List<Long> roleIds) {
		return permissionMapper.selectByRoleIds(roleIds);
	}
}
